<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="../其他/js/react.development.js"></script>
  <script src="../其他/js/react-dom.development.js"></script>

  <!-- Don't use this in production: -->
  <script src="../其他/js/babel.min.js"></script>
</head>
<body>
  <div id="root"></div>
  <script type="text/babel">
  // 创建函数式组件
  function Demo() {
    console.log(this);//此处this指向undefined, jingguobabel编译后开启了严格模式
    return <h2>我是函数式组件(简单定义)</h2>
  }
  // 渲染
  ReactDOM.render(<Demo/>, document.getElementById('root'))
  
  </script>
</body>
</html>